package Assignment.Test4;

public class Student extends Person{

    private  String stuNumber;
    private String school;

    public Student() {
    }

    public Student(String name, String gender, int age, String nationality,String stuNumber,String school) {
        super(name, gender, age, nationality);
        this.stuNumber = stuNumber;
        this.school = school;
    }
    public String getStuNumber(){
        return stuNumber;
    }
    public void setStuNumber(String stuNumber){
        this.stuNumber = stuNumber;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    @Override
    public void work() {
        System.out.println(super.getName()+"在学习");
    }
}
